package com.itheima.d3_collection_traverse;

import lombok.Data;
import lombok.ToString;

@Data
public class Movie {
    private String name;
    private double score;
    private String actor;

    public Movie(String name, double score, String actor) {
        this.name = name;
        this.score = score;
        this.actor = actor;
    }

    public Movie() {
    }

    @Override
    public String toString() {
        return  name  + ", " + score + ", " + actor;
    }
}
